#ifndef PRINTER_H
#define PRINTER_H

#include <QObject>
#include <QFile>
#include <QStack>
#include  <QTextCodec>


class printer : public QObject
{
    Q_OBJECT
public:
    explicit printer(QObject *parent = 0);
    void print_file( QString filename = "/qt/sterilization/doc");
    void print_string(QString str);
    QFile tty_file;
    QTextCodec* codec1;
    QString str1;
    QFile doc;

signals:

public slots:

private:
         QStack<QString> stack;
         inline  bool openfile(QString filename);
};

#endif // PRINTER_H


